package com.cn.test;

import com.cn.pojo.Car;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AnnotationTest1 {
   @Test
   public void test(){
       ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
       Car car1 = context.getBean("car1", Car.class);
       System.out.println(car1.getCarName());

   }
}
